<?php
	include_once("global_modules.php");
	
	/**
	 * This function returns the information of testbed.
	 * @return Array containing the name, localization and domain of testbed.
	 */
	function get_testbed_info(){
		$connection = database_connect();
		
		$query = database_query($connection, "SELECT * FROM testbed LIMIT 1");
		$result = database_fetch_object($query);
		
		$testbed_info = array(
							'name' => $result->name,
							'localization' => 
								array(
									'X' => $result->cord_x,
									'Y' => $result->cord_y
								),
							'domain' => $result->domain
						);
		
		database_close($connection);
		
		return $testbed_info;
	}
?>
